package com.partner.domain;

import java.util.List;

/**
 * 帖子实体类
 * @author Jinshuan
 *
 */
public class TieZi {
private int id;
private String title;
private String content;
private String phone;
private int comment_num;
private String time;
private int zan;
private int collect;
private String img;//是楼主发帖的时候附带的图片
private String photo;//是对应楼主的头像
private String username;//是对应的楼主的昵称
private List<TieZiReply> replys;//一个主帖对应的评论



/**
 * @return the username
 */
public String getUsername() {
	return username;
}
/**
 * @param username the username to set
 */
public void setUsername(String username) {
	this.username = username;
}
/**
 * @return the replys
 */
public List<TieZiReply> getReplys() {
	return replys;
}
/**
 * @param replys the replys to set
 */
public void setReplys(List<TieZiReply> replys) {
	this.replys = replys;
}
/**
 * @return the photo
 */
public String getPhoto() {
	return photo;
}
/**
 * @param photo the photo to set
 */
public void setPhoto(String photo) {
	this.photo = photo;
}
/**
 * @return the img
 */
public String getImg() {
	return img;
}
/**
 * @param img the img to set
 */
public void setImg(String img) {
	this.img = img;
}
/**
 * @return the id
 */
public int getId() {
	return id;
}
/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}
/**
 * @return the title
 */
public String getTitle() {
	return title;
}
/**
 * @param title the title to set
 */
public void setTitle(String title) {
	this.title = title;
}
/**
 * @return the content
 */
public String getContent() {
	return content;
}
/**
 * @param content the content to set
 */
public void setContent(String content) {
	this.content = content;
}
/**
 * @return the phone
 */
public String getPhone() {
	return phone;
}
/**
 * @param phone the phone to set
 */
public void setPhone(String phone) {
	this.phone = phone;
}
/**
 * @return the comment_num
 */
public int getComment_num() {
	return comment_num;
}
/**
 * @param comment_num the comment_num to set
 */
public void setComment_num(int comment_num) {
	this.comment_num = comment_num;
}
/**
 * @return the time
 */
public String getTime() {
	return time;
}
/**
 * @param time the time to set
 */
public void setTime(String time) {
	this.time = time;
}
/**
 * @return the zan
 */
public int getZan() {
	return zan;
}
/**
 * @param zan the zan to set
 */
public void setZan(int zan) {
	this.zan = zan;
}
/**
 * @return the collect
 */
public int getCollect() {
	return collect;
}
/**
 * @param collect the collect to set
 */
public void setCollect(int collect) {
	this.collect = collect;
}
/* (non-Javadoc)
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
	return "TieZi [id=" + id + ", title=" + title + ", content=" + content
			+ ", phone=" + phone + ", comment_num=" + comment_num + ", time="
			+ time + ", zan=" + zan + ", collect=" + collect + ", img=" + img
			+ ", photo=" + photo + ", username=" + username + ", replys="
			+ replys + "]";
}


}
